package com.vrsys.util;

public class HttpLanguageUtil {
    private static String en_US = "EN";
    private static String zh_CN = "ZH";
//    public static String LANG = "EN";

    public static String parseLocaleString(String httpLanguageHeader) {
        if(null != httpLanguageHeader) {
            if(httpLanguageHeader.startsWith("zh-CN")) {
//                LANG = "ZH";
                return HttpLanguageUtil.zh_CN;
            } else {
//                LANG = "EN";
                return HttpLanguageUtil.en_US;
            }
        }
        // default Language
//        LANG = "EN";
        return HttpLanguageUtil.en_US;
    }
}
